<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch"
          action="${request.getContextPath()}/OffLine/offlineReport" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="offLineList"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="offLineExcel"/>
            <label class="row-label">开始时间：</label>
            <input name="startTime" value="${startTime}" data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm:ss"
                   type="text" data-rule="required">
            <label class="row-label">结束时间：</label>
            <input name="endTime" value="${endTime}" data-toggle="datepicker" data-pattern="yyyy-MM-dd HH:mm"
                   type="text" data-rule="required"><br>
            <label>设备编号：</label>&nbsp;&nbsp;
            <g:select name="equipmentId" from="${eqpList}" data-toggle="selectpicker" data-live-search="true"
                      optionKey="equipment_id" optionValue="equipment_id" value="${equipmentId}" id="monEqpid" data-width="200"
                      noSelection="['': '===请选择===']"/>
            <label>采集项集：</label>&nbsp;&nbsp;
            <g:select name="edcSetName" from="${edcSetNameList}" class="selectpicker" data-live-search="true"
                      data-live-search-placeholder="查找" data-toggle="selectpicker"
                      optionKey="edc_set_name" optionValue="edc_set_name" value="${edcSetName}"
                      noSelection="['': '===请选择===']" data-nextselect="#itemName" data-width="200"
                      data-refurl="${request.getContextPath()}/JsonData/getOptionHTMLByTarget?edcSetName={value}&SYS_QUERY_NAME=itemNameList"/>&nbsp;
            <label>采集项：</label>&nbsp;
            <g:select name="itemName" from="${itemNameList}" data-toggle="selectpicker"
                      data-live-search="true" id="itemName" data-width="200"
                      optionKey="label" optionValue="value" value="${itemName}"
                      noSelection="['': '===请选择===']"/>&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-green"
               href="${request.getContextPath()}/OffLine/offlineReport?export=xls"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="sign-out">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${offLineList.size() > 0}">
        <g:render template="offLineExcel"></g:render>
    </g:if>
</div>
<g:render template="../template/pagination"/>